﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ServeyAnswerAdd.ascx.cs"
    Inherits="Administrator_Controls_ServeyAnswerAdd" %>
<script type="text/javascript">
    $(document).ready(function () {
        $("select.selected option").live("click", function (event) {
            if ($(this).attr("selected") == true) {
                $("select.selected option." + $(this).attr("name")).each(function () {
                    $(this).attr("selected", "selected");
                    $("select.selected option." + $(this).attr("name")).each(function () {
                        $(this).attr("selected", "selected");
                    });
                });
            } else {
                $("select.selected option[name=" + $(this).attr("class") + "]").removeAttr("selected");
                $("select.selected option[name=" + $("select.selected option[name=" + $(this).attr("class") + "]").attr("class") + "]").removeAttr("selected");
            }
        });
    });
</script>
<!-- forms -->
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5>
            Thêm câu trả lời</h5>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <!-- end box / title -->
    <div class="form">
        <div class="fields">
            <div class="field field-first">
                <div class="label">
                    <label for="input-medium">
                        Chọn câu hỏi:</label>
                </div>
                <div class="input">
                    <asp:DropDownList ID="ddlQuestions" CssClass="select" runat="server" AppendDataBoundItems="true">
                        <asp:ListItem Text="--Chọn câu hỏi--" Value="0" />
                    </asp:DropDownList>
                    <div class="note">
                        Chọn câu hỏi</div>
                </div>
            </div>
            <div class="field">
                <div class="label label-textarea">
                    <label for="textarea">
                        Control:</label>
                </div>
                <div class="input">
                    <asp:DropDownList ID="ddlServeyControl" CssClass="select" runat="server" AppendDataBoundItems="true">
                        <asp:ListItem Text="--Chọn kiểu nhập liệu--" Value="0" />
                    </asp:DropDownList>
                    <div class="note">
                    </div>
                </div>
            </div>
            <div class="field">
                <div class="label label-textarea">
                    <label for="textarea">
                        Phương án trả lời:</label>
                </div>
                <div class="input">
                    <asp:TextBox ID="txtAnswerText" runat="server" CssClass="medium required" MaxLength="255"></asp:TextBox>
                    <div class="note">
                    </div>
                </div>
            </div>
            <div class="buttons">
                <div class="highlight">
                    <asp:Button ID="btnSubmit" runat="server" Text="Thực hiện" OnClick="btnSubmit_Click" />
                </div>
            </div>
        </div>
    </div>
</div>
<!-- end forms -->
